from datetime import datetime

from django.db import models

# Create your models here.

# class UserInfo(models.Model):
#     name = models.CharField(max_length=32)
#     password = models.CharField(max_length=64)
#     age = models.IntegerField()
"""
create table aap01_userinfo(
    id bigint auto_increment primary_key=True,
)
"""

class User(models.Model):
    username = models.CharField(max_length=50)
    password = models.CharField(max_length=100)
    email = models.CharField(max_length=100)
    join_time = models.DateTimeField(default=datetime.now)

class EmailCaptcha(models.Model):
    email = models.EmailField()
    captcha = models.CharField(max_length=10)
    used = models.BooleanField(default=False)
